import request from '@/utils/request'

//table
const api = {

  // add
  // http://122.9.33.163:6300/project/3/interface/api/38
  add(sendData) {
    return request.request({
      url: '/table/add',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // del
  // http://122.9.33.163:6300/project/3/interface/api/44
  del(sendData) {
    return request.request({
      url: '/table/del',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // edit
  // http://122.9.33.163:6300/project/3/interface/api/32
  edit(sendData) {
    return request.request({
      url: '/table/edit',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // list
  // http://122.9.33.163:6300/project/3/interface/api/26
  list(sendData) {
    return request.request({
      url: '/table/list',
      method: 'GET',
      params: sendData,
      loading: false,
    })
  },
}
export default api